<!doctype html>
<!--
@license
Copyright 2018 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html lang="en">
<head>
  <title>MWC Linear Progress Demo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
  <link rel="preload" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" as="style" type="text/css">
  <link rel="preload" href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" as="style" type="text/css">
  <script type="module" src="index.js"></script>
  <script nomodule src="../../node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
  <style>
    .unresolved main {
      opacity: 0;
    }
  </style>
  <link href="../shared/shared.css" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet">
  <style>
    mwc-linear-progress {
      width: 50%;
      margin: auto;
    }

    .demo-progress-bar {
      --mdc-theme-primary: red;
      --mdc-linear-progress-buffer-color: orange;
      --mdc-linear-progress-buffering-dots-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffcdd2'/%3E%3C/svg%3E");
    }
  </style>
</head>
<body class="unresolved">
  <demo-header component="Linear Progress" package="linear-progress"></demo-header>

  <main>
    <mwc-button id="toggle" raised ripple label="Toggle"></mwc-button>
    <mwc-linear-progress id="progress1"></mwc-linear-progress>
    <h3>linear-progress: reverse</h3>
    <mwc-linear-progress reverse progress="0.4" class="demo-progress-bar"></mwc-linear-progress>
    <h3>linear-progress: determinate</h3>
    <mwc-linear-progress determinate progress="0.5" buffer="1"></mwc-linear-progress>
    <h3>linear-progress: determinate buffer</h3>
    <mwc-linear-progress determinate progress="0.3" buffer="0.7" class="demo-progress-bar"></mwc-linear-progress>
    <h3>linear-progress: determinate buffer reverse</h3>
    <mwc-linear-progress determinate reverse progress="0.2" buffer="0.6"></mwc-linear-progress>
  </main>
  <script nomodule src="index.es5.js"></script>
</body>
</html>
